let {articleTable}=require("./articleTable")
module.exports={
    getnum(req,res){
        let num=req.body
        console.log(Object.keys(num)[0])
        articleTable.update(
            {_id:Object.keys(num)[0]},
            {$inc:{watch:1}}
            ,(err,data)=>{
                if(!err){
                    res.send(data)
                }
            }        
        )
    }
}